﻿<%@ Page Title="" Language="C#" MasterPageFile="~/source/masterpage/Base.Master" AutoEventWireup="true" CodeBehind="ExportInvoiceProducts.aspx.cs" Inherits="QLK.Web.ExportInvoiceDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="css/common.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 100%;
            text-align: left;
        }
        .style3
        {
            text-align: left;
            height: 31px;
        }
        .style4
        {
            text-align: left;
            height: 28px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellpadding="3" cellspacing="3" class="style1">
        <tr>
            <td class="style4">
                <b style="text-align: left">EXPORT-PRODUCTS</b>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                ExportInvoiceID:&nbsp;
                <asp:TextBox ID="txtInvoiceID" runat="server" CssClass="commonTexbox"></asp:TextBox>
            &nbsp;&nbsp;
                <asp:ImageButton ID="ImgEdit" ToolTip="Edit Export invoice details" 
                    runat="server" Height="20px" ImageUrl="~/images/edit_desc.gif" 
                    Width="20px" onclick="ImgEdit_Click" />
            </td>
        </tr>
        <tr>
            <td class="style3">
                CustomerID:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:TextBox ID="txtCustID" runat="server" CssClass="commonTexbox"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style3">
                StorageName:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:DropDownList ID="drlStorages" runat="server" CssClass="commonTexbox" 
                    AutoPostBack="true" onselectedindexchanged="drlStorages_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <asp:Label ID="lblWarning" runat="server" CssClass="msg" ></asp:Label>
                </td>
        </tr>
        <tr>
            <td style="text-align: left">
                List of product(s):&nbsp;&nbsp;&nbsp;
                <asp:ImageButton ID="ImgSearchProduct" runat="server" Height="20px" 
                    ImageUrl="~/images/Search-icon.png" ToolTip="Search for products" 
                    Width="20px" onclick="ImgSearchProduct_Click" />
                &nbsp;&nbsp;
                <asp:ImageButton ID="imgDelete" runat="server" Height="20px" 
                    ImageUrl="~/images/delete.over.gif" ToolTip="Delete product(s)" 
                    Width="20px" onclick="imgDelete_Click" />
                &nbsp;&nbsp;
                <asp:ImageButton ID="imgSave" runat="server" Height="20px" 
                    ImageUrl="~/images/save.gif" ToolTip="Save products" Width="20px" 
                    onclick="imgSave_Click" />
                </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
            <asp:GridView ID="grvProducts" 
                    runat="server" AutoGenerateColumns="False" 
                    AllowPaging="True" onpageindexchanging="grvProducts_PageIndexChanging" 
                    PageSize="5" >
                    <Columns>
                        
                        <asp:TemplateField HeaderText="Choose">
                            <ItemTemplate>
                                <asp:CheckBox ID="ckChoose" runat="server" _ProID="<%# Eval(QLK.Database.Columns.ProductID) %>"
                                  _InvID="<%# Eval(QLK.Database.Columns.ExportID) %>" />
                            </ItemTemplate>                            
                        </asp:TemplateField>
                        
                        <asp:BoundField DataField="ProductName" HeaderText="ProductName" />
                        <asp:BoundField DataField="Price" HeaderText="Unit Price" />
                        <asp:BoundField DataField="Quantity" HeaderText="Quantity in Storage"/>   
                                             
                        <asp:TemplateField HeaderText="Quantity">
                            <ItemTemplate>
                                <asp:TextBox ID="txtQuantity" runat="server" BackColor="#FFFFCC" 
                                    BorderStyle="None" ToolTip="Type quantity to export" Width="40px" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        
                    </Columns>
                </asp:GridView>
                    <br />
                 </ContentTemplate>
                </asp:UpdatePanel>
                </td>
        </tr>
        <tr>
            <td style="text-align: left">
                <asp:LinkButton ID="btnViewInvoice" runat="server" ForeColor="Lime" >View Invoices</asp:LinkButton>
            &nbsp;&nbsp;
                </td>
        </tr>
    </table>
</asp:Content>
